package com.hcr.regsiter.controller;

import com.hcr.regsiter.dao.RegisterDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RegisterController {

    @Autowired
    private RegisterDao registerDao;

    @RequestMapping("/save")
    public int saveRegsiter(String name,String company,String id){
        int count = registerDao.insertRegsiter(name,company,id);
        return count;
    }

    @RequestMapping("/getImg")
    public String getImage(String id){
        return registerDao.getImg(id);
    }
}
